package com.biodiv.community.request.post;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class PostDTO {

    /**
     * 帖子标题
     */
    @Schema(description = "社区id")
    private String communityId;

    /**
     * 帖子标题
     */
    @Schema(description = "帖子标题")
    private String title;

    /**
     * 帖子内容
     */
    @Schema(description = "帖子内容")
    private String content;

    /**
     * 帖子图片URL数组(JSON格式)
     */
    @Schema(description = "帖子图片URL数组")
    private List<String> imageUrl;

    /**
     * 类型
     */
    @Schema(description = "类型")
    private String type;

    /**
     * 标签
     */
    @Schema(description = "标签")
    private List<String> tag;

    /**
     * 发帖时间
     */
    @Schema(description = "发帖时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime postTime;


}
